package com.hqyj.goods.service;

import com.hqyj.goods.dto.GoodsInfo;
import com.hqyj.goods.dto.InventoryInfo;
import com.hqyj.goods.entity.Goods;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hqyj.utils.ResultUtils;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author sdx2009
 * @since 2022-09-30
 */
public interface GoodsService extends IService<Goods> {

    ResultUtils inventoryIndex(InventoryInfo inventoryInfo);

    ResultUtils inventoryOperation(InventoryInfo inventoryInfo);

    ResultUtils selectInventory();

    ResultUtils joinStorage(InventoryInfo inventoryInfo);

    ResultUtils outStorage(InventoryInfo inventoryInfo);

    ResultUtils goodsIndex(GoodsInfo goodsInfo);

    ResultUtils selectGoods();

    ResultUtils addStorage(InventoryInfo inventoryInfo);

    boolean updateGoodsNums(Integer goodsId,Integer nums);

    ResultUtils deleteGoods(Integer goodsId);

}
